package handler

import (
	"github.com/gin-gonic/gin"
	"log"
	"onerk4/zk1/api/enit/response"
	"onerk4/zk1/dao"
)

func ProductList(c *gin.Context) {
	list, err := dao.QueryProductList()
	if err != nil {
		log.Println("生鲜商品查询失败", err.Error())
		return
	}
	response.SuccessResponse(c, "ok", list)
}
